home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2686 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  975 b 

  1. Path: news.umbc.edu!not-for-mail
  2. From: schlein@umbc.edu (Jonas J. Schlein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Clearing the keyboard buffer
  5. Date: 22 Jan 1996 17:56:44 -0500
  6. Organization: University of Maryland Baltimore County
  7. Message-ID: <4e14nc$spp@umbc9.umbc.edu>
  8. References: <4dtqi4$60u@cdc2.cdc.net> <4e07uh$oqq@huron.eel.ufl.edu>
  9. NNTP-Posting-Host: umbc9.umbc.edu
  10. NNTP-Posting-User: schlein
  11.  
  12. Daniel P Hudson <afn03257@freenet2.freenet.ufl.edu> wrote:
  13. >> I'm using Turbo C++ v. 3.1 and I need to be able to clear the keyboard
  14.  
  15. <snip>
  16.  
  17. > Huh? Once the buffer is caught up, it shouldn't continue, but you
  18. > might want to try fflush(stdin); just the same.
  19.  
  20. Why would he want to try something which is guaranteed to introduce
  21. undefined behavior to his program? The fflush() function is defined
  22. only for output streams. Please read question 12.26 in the c.l.c. FAQ.
  23. -- 
  24. "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
  25.  
  26. Jonas J. Schlein  (schlein@gl.umbc.edu)
  27.